package com.bili.bili_data_api.controller;

import com.bili.bili_data_api.service.WeekService;
import com.bili.bili_data_api.vo.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class WeekController {

    @Autowired
    private WeekService weekService;

    @GetMapping("/getWeeklyType")
    public WeeklytypeVo getWeeklyType(){
        WeeklytypeVo allWeeklyType = weekService.getAllWeeklyType();
        return allWeeklyType;
    }

    @GetMapping("/getViewTop10")
    public ViewTop10Vo getViewTop10(){
        ViewTop10Vo allViewTop10 = weekService.getAllViewTop10();
        return allViewTop10;
    }

    @GetMapping("/getFavourTop10")
    public Favourtop10Vo getFavourTop10(){
        Favourtop10Vo allFavourtop10 = weekService.getAllFavourtop10();
        return allFavourtop10;
    }

    @GetMapping("/getCoinTop10")
    public CoinTop10Vo getCoinTop10(){
        CoinTop10Vo allCoinTop10 = weekService.getAllCoinTop10();
        return allCoinTop10;
    }

    @GetMapping("/getLabelTop")
    public LabelTopVo getLabelTop(){
        LabelTopVo allLabelTop = weekService.getAllLabelTop();
        return allLabelTop;
    }

    @GetMapping("/getViewTongJi")
    public ViewTongJiVo getViewTongJi(){
        ViewTongJiVo viewTongJivo = weekService.getViewTongJivo();
        return viewTongJivo;
    }
}
